#include<iostream>
using namespace std;

int gcd(int m, int n)
{
	int r = 0;
	while(n!=0)
	{
		r=m%n;
		m=n;
		n=r;
	}
	return m;
}

int main(){
        while(1){
        	int x,y;
		cin>>x>>y;
		int d=gcd(x,y);
		cout<<x*y/d<<endl;
	
		}
		
	return 0;
} 
